package com.rightsidetech.trade.dtos.request;

import com.rightsidetech.commom.base.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@ApiModel("门店订单列表")
public class TdCommodityStoreAppListRequest extends PageRequest implements Serializable {

    @ApiModelProperty("订单状态,  0-待付款,1-已支付(用户)/待接单,  2-已支付(用户)/已完成, 3-待接单售后申请，4-售后申请, 5-已退款, -1-取消订单, 345-待处理")
    @Pattern(regexp = "^0|1|2|3|4|5|-1|345$",message = "订单状态不正确")
    private String orderStatus;

    @ApiModelProperty("搜索条件")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5a-zA-Z0-9-_]{0,}$", message = "搜索条件不能包含特殊符号")
    private String condition;

    @ApiModelProperty("门店id")
    private Long storeId;
}
